home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / RatMandelbrot / Source / DrawView.h next >
Encoding:
Text File  |  1995-06-12  |  2.0 KB  |  73 lines

  1.  
  2. /* RatMandel DrawView.h  by William Gilbert,  Dec 1992 */
  3.  
  4. #import <appkit/appkit.h>
  5.  
  6. #define AND            &&
  7. #define OR             ||
  8. #define IS            ==
  9. #define IS_NOT        !=
  10. #define NOT            !
  11. #define MOD            %
  12. #define SQ(x)        (x)*(x)
  13.  
  14. @interface DrawView:View
  15.  {
  16.     id    printerPopUpButton;
  17.     id    notesText;
  18.     id    paramsForm;
  19.     id    stopButton;
  20.     id    startButton;
  21.     id    planePopUpButton;
  22.     id    accessoryBox;
  23.     NXRect stopRect;
  24.     BOOL running;
  25.     int pixelSize,                // pixel sixe for printing
  26.         lineCompleted,            // the last full line computed
  27.         iterates,                // max iteration power
  28.         cycle,                    // cycle length to check
  29.         displayplane;            // which plane section to display
  30.     float xr, yr, xs, ys,        // r, s parameters of plane section
  31.         xmax, xmin, ymax, ymin,    // sides of window
  32.         close;                    // how close to check for iterates
  33.     double sqclose, invclose;    // square and inverse square of close
  34.  }
  35.  
  36. - start:sender;
  37. - clearNotes:sender;
  38. - lastCoords:sender;
  39. - presetMandelbrot:sender;
  40. - presetSnowshoe:sender;
  41. - presetSpyglass:sender;
  42. - presetWink:sender;
  43. - presetTieAndCane:sender;
  44. - presetNapoleon:sender;
  45. - presetSperm:sender;
  46. - presetRing:sender;
  47. - presetBloodClot:sender;
  48. - presetAlien:sender;
  49. - presetLunar:sender;
  50. - presetScallops:sender;
  51. - (BOOL)continue;
  52. - drawSelf:(NXRect *)rect :(int)count;
  53. - (void) drawline:(float)col :(float)p1 :(float) p2 :(float) q;
  54. - (float)pixelCol:(float)x :(float)y;
  55. - setParameters:(int)plane 
  56.     xr:(float)paramsxr yr:(float)paramsyr 
  57.     xs:(float)paramsxs ys:(float)paramsys 
  58.     xmin:(float)paramsxmin ymin:(float)paramsymin 
  59.     xmax:(float)paramsxmax ymax:(float)paramsymax 
  60.     iterates:(int)paramsiterates cycle:(int)paramscycle 
  61.     close:(float)paramsclose;
  62. - getParameters:(int *)plane
  63.     xr:(float *)paramsxr yr:(float *)paramsyr 
  64.     xs:(float *)paramsxs ys:(float *)paramsys 
  65.     xmin:(float *)paramsxmin ymin:(float *)paramsymin 
  66.     xmax:(float *)paramsxmax ymax:(float *)paramsymax 
  67.     iterates:(int *)paramsiterates cycle:(int *)paramscycle 
  68.     close:(float *)paramsclose;
  69. - parametersChanged:sender;
  70. - mouseDown:(NXEvent *)theEvent;
  71.  
  72. @end
  73.